package org.example.model;

import javax.persistence.Embeddable;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

@Embeddable
public class PhoneNumber {
    private String phoneNumber;
    @Enumerated(EnumType.STRING)
    private PhoneType phoneType;

    public PhoneNumber() {
    }

    public PhoneNumber(String phoneNumber, PhoneType phoneType) {
        this.phoneNumber = phoneNumber;
        this.phoneType = phoneType;
    }
}
